package spring.cloud.tasks.api.database.repository;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import spring.cloud.tasks.api.database.entity.StatisticsDto;

@Repository
public interface StatisticsDtoRepository {
    int insert(StatisticsDto statisticsDto);

    int update(StatisticsDto statisticsDto);

    int delete(Integer id);

    StatisticsDto select(Integer id);

    StatisticsDto findStatisticsByNameAndZooKeeperAddressList(@Param("zooKeeperAddressList") String zooKeeperAddressList, @Param("type") String type);

}